package com.xiaozhichao.databafflesys.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @author:xiaozhichao
 * @date:2021/3/22
 */
@SpringBootApplication(scanBasePackages = {"com.xiaozhichao.databafflesys.repository", "com.xiaozhichao.databafflesys.admin"})
@MapperScan("com.xiaozhichao.databafflesys.repository.mapper")
public class DataBaffleSysAdminApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(DataBaffleSysAdminApplication.class,args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(DataBaffleSysAdminApplication.class);
    }
}
